﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

using System.Web.UI.WebControls;
using System.Web.Security;

/// <summary>
/// Summary description for MyTextBox
/// </summary>
public class MyTextBox
{
	public MyTextBox()
	{
		//
		// TODO: Add constructor logic here
		//
	}

    public void Xoa(TextBox textBox)
    {
        textBox.Text = string.Empty;
    }

    public Boolean kiemtraRong(TextBox textBox)
    {
        if (textBox.Text == string.Empty)
        {
            return true;
        }

        return false;
    }

    public string mahoaSHA1(TextBox textBox)
    {
        return (FormsAuthentication.HashPasswordForStoringInConfigFile(textBox.Text, "sha1"));
    }
}